-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adopt Ava default file glob #8653
Conversation
45c6d7e
to
d86551c
Compare
d86551c
to
588007c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With
Once this is in SDK, we can do the same in other Agoric repos.
in the PR comment, this PR LGTM. However, I'd like to see such a PR actually happen and be approved for endo before seeing both merged. After a month of unanticipated pain bringing our two main repos back in sync, the last thing I want to see is for them to diverge again. This makes it hazardous to merge either until both are approved.
See endojs/endo#1913
I think the script will mis-handle generated |
Good catch. I'll regenerate them and delete the old one. |
588007c
to
8f3160c
Compare
Deploying agoric-sdk with Cloudflare Pages
|
6ee4f59
to
a8ace47
Compare
a8ace47
to
9b8865f
Compare
@Mergifyio queue |
🟠 Waiting for conditions to match
|
@Mergifyio refresh |
✅ Pull request refreshed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
@Mergifyio queue |
🛑 Invalid queue nameThe queue |
Refs: Agoric/agoric-sdk#8273 ## Description Akin to Agoric/agoric-sdk#8653 ### Security Considerations none ### Scaling Considerations none ### Documentation Considerations reduces need to document differences ### Testing Considerations CI ### Compatibility Considerations Developers will need to know to make the new files. This globs for both old and new so no tests are accidentally omitted from CI. Agoric/agoric-sdk#8273 will be closed by dropping the custom glob and ensuring no old names remain. ### Upgrade Considerations none
closes: #8273 ## Description #8653 adopted the new glob but left the old one so any in-flight PRs with new tests wouldn't have them ignored. It's been a month so any should be migrated by now. This removes the old glob. It doesn't remove the `"files"` option entirely, because the default glob is everything under `test` and we have files there that aren't tests. Ava warns they're not tests and and eslint errors when tests import from them. We could go fully to the default glob by using an underscore prefixes on files in `test` that aren't tests. I don't think we need to do that. This change already meets the goal of matching the DX of Ava in other repos. (Test filenames are indicated by a `.test.js` suffix) ### Security Considerations n/a ### Scaling Considerations n/a ### Documentation Considerations reduces need to document ### Testing Considerations no older test files in master (`find packages -name 'test-*' |grep 'test/'`) ### Upgrade Considerations n/a
closes: #8273
Description
Adds a script to migrate a package's file glob to the Ava defaults. See script docs and #8273 for motivation. It uses https://github.com/google/zx because I was banging my head on Bash options and version inconsistencies.
The main thing to review is whether this change is good. Then the code in the first commit. The subsequent commits just are the code running over all the packages. When this PR is approved I'll rebase and re-run the batch to make all the migration commits anew.
Once this is in SDK, we can do the same in other Agoric repos.
Security Considerations
n/a
Scaling Considerations
n/a
Documentation Considerations
If anything, less need for documentation because it aligns with how Ava works by default.
Testing Considerations
To run the script yourself, ensure,
Upgrade Considerations
n/a